package com.nus.dataaccess.dao.registration;

import com.nus.dataaccess.dao.base.BaseEntity;
import com.nus.dataaccess.dao.conference.ConferenceAuthor;
import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 *
 * @author T W Ong
 */
@Entity
@Table(name = "REGISTRATION")
public class Registration extends BaseEntity {

    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Override
    public Serializable getPk() {
        return this.getId();
    }
    @Column(name = "USER_ID")
    private Long userId;
    @Column(name = "CONFERENCE_EVENT_ID")
    private Long conferenceEventId;
    @Column(name = "PAYMENT_STATUS")
    private Long paymentStatus;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getConferenceEventId() {
        return conferenceEventId;
    }

    public void setConferenceEventId(Long conferenceEventId) {
        this.conferenceEventId = conferenceEventId;
    }

    public Long getPaymentStatus() {
        return paymentStatus;
    }

    public void setPaymentStatus(Long paymentStatus) {
        this.paymentStatus = paymentStatus;
    }
}
